package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.purchase.entity.PSpOverallPlanDetail;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPSpOverallPlanDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略采购年度总规划-详情 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
@Component
@Mapper
public interface ExtPSpOverallPlanDetailMapper extends BaseMapper<PSpOverallPlanDetail> {

    List<ExtPSpOverallPlanDetail> getPSpOverallPlanList(Map<String, Object> map);

    Integer getPSpOverallPlanListCount(Map<String, Object> map);

    ExtPSpOverallPlanDetail getById(@Param("id") String id);

    void addOrReduceurchasedAmount(@Param("amount")Double amount ,@Param("id") String id);

}
